﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HandleErrorInfo>" %>

<asp:Content ID="errorContent" ContentPlaceHolderID="MainContent" runat="server">
    <br clear="all" />
    <div class="errorExp">
        <h2>
            Sorry, an error occurred while processing your request.
        </h2>
        <div>
            <a  href="#">Click here to see the details</a>
        </div>  
        <div id="stackTrace" style ="display:none">
            <p><%=Model.Exception.Message %></p>
            <p><%=Model.Exception.StackTrace%></p>
        </div>
    </div><br clear="all" />
<script type="text/javascript" language="javascript">
    $(document).ready(function() {
        $("a").click(function(){
            $("#stackTrace").show();
        });
    });
</script>
</asp:Content>

